$OpenBSD: patch-kipi-plugins_kameraklient_gpstatus_cpp,v 1.1 2013/01/19 11:27:01 zhuk Exp $
Fix compilation with GPhoto 2.5. Based on ideas from this patch:
http://bugsfiles.kde.org/attachment.cgi?id=73176
--- kipi-plugins/kameraklient/gpstatus.cpp.orig	Sat Jan 19 00:39:07 2013
+++ kipi-plugins/kameraklient/gpstatus.cpp	Sat Jan 19 01:03:24 2013
@@ -52,39 +52,16 @@ GPContextFeedback GPStatus::cancel_func(GPContext *, v
     return (cancel ? GP_CONTEXT_FEEDBACK_CANCEL : GP_CONTEXT_FEEDBACK_OK);
 }
 
-void GPStatus::error_func(GPContext *, const char *format, va_list args, void *) {
-    char buf[4096] = "";
-    int nSize = vsnprintf( buf, 4096, format, args );
-    if(nSize > 4094) {
-	nSize = 4094;
-    }
-    buf[nSize] = '\0';
-    QString error;
-    error = error.fromLocal8Bit(buf);
-    GPMessages::gpMessagesWrapper()->emit errorMessage(error);
+void GPStatus::error_func(GPContext *, const char *str, void *) {
+    GPMessages::gpMessagesWrapper()->emit errorMessage(QString(str));
 }
 
-void GPStatus::status_func (GPContext *, const char *format, va_list args, void *) {
-    char buf[4096] = "";
-    int nSize = vsnprintf( buf, 4096, format, args );
-    if(nSize > 4094) {
-	nSize = 4094;
-    }
-    buf[nSize] = '\0';
-    QString status;
-    status = status.fromLocal8Bit(buf);
-    GPMessages::gpMessagesWrapper()->emit statusChanged(status);
+void GPStatus::status_func (GPContext *, const char *str, void *) {
+    GPMessages::gpMessagesWrapper()->emit statusChanged(QString(str));
 }
 
-unsigned int GPStatus::progress_start_func(GPContext *, float _target, const char *format, va_list args, void *) {
-    char buf[4096] = "";
-    int nSize = vsnprintf( buf, 4096, format, args );
-    if(nSize > 4094) {
-	nSize = 4094;
-    }
-    buf[nSize] = '\0';
-    QString prog;
-    prog = prog.fromLocal8Bit(buf);
+unsigned int GPStatus::progress_start_func(GPContext *, float _target, const char *str, void *) {
+    // XXX str not used?
     target = _target;
     return GP_OK;
 }
